﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
</head>
<body>
    <div class="page">
        <header>
            <div id="title">
                <h1>CruiseControl</h1>
            </div>
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>
            <nav>
                <ul id="menu">
                    <li>@Html.ActionLink("Home", "Index", "Home")</li>
                    <li>@Html.ActionLink("Круизы", "Cruises", "Home")</li>
                    @if (Request.IsAuthenticated)
                    {
                        if (Engine.InRole(User.Identity.Name, "Admin"))
                        {<li>@Html.ActionLink("Кабинет Администратора", "Admin", "Home")</li>}
                        if (Engine.InRole(User.Identity.Name, "Agent"))
                        {<li>@Html.ActionLink("Заявки", "Submit", "Home")</li>
                            if (Engine.InRole(User.Identity.Name, "Guide"))
                            {
                            <li>@Html.ActionLink("Кабинет экскурсовода", "", "")</li>
                                if (Engine.InRole(User.Identity.Name, "Clerk"))
                                {
                                <li>@Html.ActionLink("График сопровождения", "", "")</li>
                                    if (Engine.InRole(User.Identity.Name, "Owner"))
                                    {
                                        <li>@Html.ActionLink("Кабинет владельца", "", "")</li>
                                    }
                                }
                            }
                        }
                    }          
                    <li>@Html.ActionLink("Корабли", "Ships", "Home")</li>  
                    <li>@Html.ActionLink("About", "About", "Home")</li>
                </ul>
            </nav>
        </header>
        <section id="main">
            @RenderBody()
        </section>
        <footer>
        <div class=footer>
        ©2011 Быдлокодеришко На Убогоньком Недоязычке
        </div>
        </footer>
    </div>
</body>
</html>
